package cn.lhjl.day03.practice;

public class OverLoadisName {
    public static void main(String[] args) {
        isName((byte) 2,(byte) 4);
        isName((short)2,(short)2);
        isName(2,2);
        isName(100L,1L);
    }

    public static boolean isName(byte a, byte b) {
        boolean same;
        System.out.println("byte");
        if (a == b) {
            same = true;
        } else {
            same = false;
        }
        return same;
    }

    public static boolean isName(short a, short b) {
        System.out.println("short");
        return a == b;
    }

    public static boolean isName(int a, int b) {
        System.out.println("int");
        return a == b ? true : false;
    }

    public static boolean isName(long a, long b) {
        System.out.println("long");
        return a == b;
    }
}
